//
//  GoodDetailModel.h
//  B2C
//
//  Created by xiaowu on 2017/8/4.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GoodAttributeModel.h"
#import "ImageUrlModel.h"
#import "GoodsPriceTaidModel.h"
#import "GoodsAttributePriceModel.h"
#import "CouponModel.h"

@interface GoodsFullCut : NSObject

@property (nonatomic, copy) NSString *createtime;
@property (nonatomic, copy) NSString *fccut;        // 减多少
@property (nonatomic, copy) NSString *fcfull;       // 满多少
@property (nonatomic, copy) NSString *fcid;         //
@property (nonatomic, copy) NSString *gid;
@property (nonatomic, copy) NSString *gtrcid;

@end

@interface GoodDetailGtotsModel : NSObject

@property (nonatomic, copy) NSString *gtdescribe;
@property (nonatomic, copy) NSString *gtname;

@end

@interface GoodDetailModel : NSObject

@property (nonatomic, copy) NSString *gid;
@property (nonatomic, copy) NSString *gtcid;
@property (nonatomic, copy) NSString *gnumber;      // 商品编号
@property (nonatomic, copy) NSString *gname;        // 商品名称
@property (nonatomic, copy) NSString *gextension;   // 推广信息
@property (nonatomic, copy) NSString *createtime;   // 创建时间
@property (nonatomic, copy) NSString *gdetails;     // 商品详细
@property (nonatomic, copy) NSString *gbarcode;     // 条形码
@property (nonatomic, copy) NSString *gimg;         // 商品主图片
@property (nonatomic, copy) NSString *ghomeimg;     // 首页缩略图
@property (nonatomic, assign) BOOL iscollection;    // 是否收藏
//@property (nonatomic, strong) NSArray <ImageUrlModel *> *imgs;
@property (nonatomic, strong) NSArray <GoodDetailGtotsModel *> *gtots;
@property (nonatomic, strong) NSArray <GoodAttributeModel *> *attribute; // 原始属性
@property (nonatomic, strong) NSArray <GoodsAttributePriceModel *> *goodsattribute;  // 价格 对应属性

//新添加hdy_20180607
@property (nonatomic,strong) NSMutableArray * g_color;  //颜色属性
@property (nonatomic,strong) NSMutableArray * g_price;  //价格组合
@property (nonatomic,strong) NSMutableArray * g_sku;    //sku规格
@property (nonatomic,strong) NSMutableArray * g_test;   //这是什么？

@property (nonatomic, copy) NSString *gcid;             // 1级分类ID
@property (nonatomic, copy) NSString *gintegral;        // 积分
@property (nonatomic, copy) NSString *goldprice;        // 原价
@property (nonatomic, copy) NSString *gprice;           // 价格
@property (nonatomic, copy) NSString *pgprice;          // 团购价
@property (nonatomic, copy) NSString *pgnumber;         // 团购数量
@property (nonatomic, copy) NSString *pgstarttime;      // 团购开始时间
@property (nonatomic, copy) NSString *pgendtime;        // 团购结束时间
@property (nonatomic, copy) NSString *gpromotionprice;  // 设置促销价
@property (nonatomic, copy) NSString *gstarttime;       // 秒杀开始时间(日期)
@property (nonatomic, copy) NSString *gendtime;         // 秒杀结束时间(日期)
@property (nonatomic, copy) NSString *sktime;           // 秒杀开始时间
@property (nonatomic, copy) NSString *endtime;          // 秒杀结束时间
@property (nonatomic, copy) NSString *gseckillprice;    // 秒杀价格
@property (nonatomic, copy) NSString *gtrcid;
@property (nonatomic, copy) NSString *gweight;          // 重量

//积分  秒杀  团购 代购  附近  普通
@property (nonatomic, assign) BOOL isigoods;         // 是否积分商品
@property (nonatomic, assign) BOOL gseckill;         // 是否为秒杀
@property (nonatomic, assign) BOOL isgroupbuy;       // 是否团购
@property (nonatomic, assign) BOOL ispurchasing;     // 是否代购
@property (nonatomic, copy) NSString *sid;           // 店铺id

@property (nonatomic, assign) BOOL isabroad;         // 是否境外
@property (nonatomic, assign) BOOL isdiscount;       // 是否参与优惠
@property (nonatomic, assign) BOOL isfreeshipping;   // 是否包邮
@property (nonatomic, assign) BOOL isnew;            // 是否新品
@property (nonatomic, assign) BOOL isshelves;        // 是否上架
@property (nonatomic, assign) BOOL istj;             // 是否推荐
@property (nonatomic, copy) NSString *salesvolume;   // 销量
@property (nonatomic, copy) NSString *scid;
@property (nonatomic, copy) NSString *skid;
@property (nonatomic, copy) NSString *suid;
@property (nonatomic, copy) NSString *supplyprice;      // 供货价
@property (nonatomic, copy) NSString *uid;              // 渠道商id

@property (nonatomic, strong) NSArray<ImageUrlModel *> *goodsimg;

@property (nonatomic, strong) NSArray<CouponModel *> *coupon;   // 优惠券
@property (nonatomic, strong) NSArray<GoodsFullCut *> *fullcut; // 满减
@property (nonatomic, copy) NSString *gastock;          // 库存
@property (nonatomic, copy) NSString *allgastock;
@property (nonatomic, copy) NSString *collectioncount;  // 收藏数
@property (nonatomic, copy) NSString *escore;           // 评分
@property (nonatomic, copy) NSString *evaluate;         // 评价
@property (nonatomic, copy) NSString *purchasinggoods;  // 团购商品
@property (nonatomic, copy) NSString *freeshippingtype;
@property (nonatomic, copy) NSString *shopcartcount;

- (NSArray *)getImgsUrl;
- (NSArray *)getGtotsStr;
// 自己添加的
@property (nonatomic, copy) NSString *gaid; // 选中的属性ID
@property (nonatomic, copy) NSString *number; // 购买数量
@end
